"""
URL configuration for Hellodjango project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from new01 import views       #添加数据库
from app03 import views       #Form组件

from . import testdb
from . import testdb, search, search2
from django.urls import re_path, include

#
# urlpatterns = [
#     path('admin/', admin.site.urls),
#     path('index/', views.index),
#     path('web/', views.web01),
#     path('testdb/', testdb.testdb),
#     # path('name/', views.show_name),
# ]




# #HTTP请求，get请求
# urlpatterns = [
#     # re_path(r'^hello/$', views.web01),
#     # re_path(r'^testdb/$', testdb.testdb),
#     # re_path(r'^search-form/$', search.search_form),
#     # re_path(r'^search/$', search.search),
#     # re_path(r'^runoob/$', search.runoob),               #get请求
#     # re_path(r'^search-post/$', search2.search_post),    #post请求
#     # re_path(r'^runoob2/$', search2.runoob2),
#     #路由
#     # path('add_book/', views.add_book),         #添加数据库
#     path('app01/', include("app01.urls")),
#     path('app02/', include("app02.urls")),       #路由
#     path('add_emp/', views.add_emp),             #Form组件
#
# ]



from django.contrib import admin
from django.urls import path
from cookie import views


urlpatterns = [
    path('admin/', admin.site.urls),      #登录数据库已有账号
    path('login/', views.login),
    path('index/', views.index),
    path('logout/', views.logout),
    path('order/', views.order),
    # path('add_book/', views.add_uesr)   #添加数据库账号数据
]